package com.visitorspecials.tankbattle.server;

import java.util.ArrayList;

import java.util.*;

public class House extends Actor 
{
	ArrayList<Actor> parts;
	
	public House(Vector2 loc, ArrayList<Actor> list)
	{
		super(null, loc , 40 , list);
		parts = new ArrayList<Actor>();
		
		parts.add(new Obstacle("house1", new Vector2(loc.x-10,loc.y-10), 20, parts));
		parts.add(new Obstacle("house2", new Vector2(loc.x+10,loc.y-10), 20, parts));
		parts.add(new Obstacle("house3", new Vector2(loc.x-10,loc.y+10), 20, parts));
		parts.add(new Obstacle("house4", new Vector2(loc.x+10,loc.y+10), 20, parts));
	}
	
	
	@Override
	public String toString()
	{
		String output = "";
		for(Actor a : parts)
		{
			output += a.toString();
		}
		return output;
	}
}
